<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="org.apak.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Main</title>
</head>
<body>
<%
	String login = (String) request.getAttribute("login");
	String error = (String) request.getAttribute("error");
	if(login == null)
		login = "";
	if(error == null)
		error = "";
%>
<form action="main?action=login" method="post">
<table>
	<tr>
		<td>Login:</td>
		<td><input type="text" name="login" value="<%= login %>"></td>
	</tr>
	<tr>
		<td>Password:</td>
		<td><input type="password" name="pass" value=""></td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" name="actionButton" value="Log me in"><%= error %></td>
	</tr>	
</table>
</form>
</body>
</html>